home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snip9611.zip / SSTRCPY.C < prev    next >
C/C++ Source or Header  |  1996-11-24  |  490b  |  29 lines

  1. /* +++Date last modified: 24-Nov-1996 */
  2.  
  3. /*
  4. **  strcpy() and strcat() work-alikes which allow overlapping buffers.
  5. */
  6.  
  7. #include <string.h>
  8. #include "snip_str.h"
  9.  
  10. #if defined(__cplusplus) && __cplusplus
  11.  extern "C" {
  12. #endif
  13.  
  14. char *sstrcpy(char *to, char *from)
  15. {
  16.     memmove(to, from, 1+strlen(from));
  17.     return to;
  18. }
  19.  
  20. char *sstrcat(char *to, char *from)
  21. {
  22.     sstrcpy(to + strlen(to), from);
  23.     return to;
  24. }
  25.  
  26. #if defined(__cplusplus) && __cplusplus
  27.  }
  28. #endif
  29.